package com.dsg.entity.account;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 天鑽公司与银行账比较
 * </p>
 *
 * @author system
 * @since 2020-11-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_account_compare")
@ApiModel(value="DsgAccountCompare对象", description="天鑽公司与银行账比较")
public class DsgAccountCompare implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "檢查狀態")
    @TableField("CHECK_STATUS")
    private Integer checkStatus;

    @ApiModelProperty(value = "銀行名稱")
    @TableField("ACCOUNT_NAME")
    private String accountName;

    @ApiModelProperty(value = "銀行帳號")
    @TableField("ACCOUNT_NO")
    private String accountNo;

    @ApiModelProperty(value = "銀行統計餘額")
    @TableField("BANK_STA_SUM")
    private BigDecimal bankStaSum;

    @ApiModelProperty(value = "銀行可用餘額")
    @TableField("BANK_USE_SUM")
    private BigDecimal bankUseSum;

    @ApiModelProperty(value = "系統統計餘額")
    @TableField("SYS_STA_SUM")
    private BigDecimal sysStaSum;

    @ApiModelProperty(value = "系統可用餘額")
    @TableField("SYS_USE_SUM")
    private BigDecimal sysUseSum;

    @ApiModelProperty(value = "CheckBank時間")
    @TableField("BANK_CHECK_TIME")
    private Date bankCheckTime;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    @ApiModelProperty(value = "是否转入历史1：当前记录2：历史记录记录每次比较历史，方便查询")
    @TableField("IS_HIS")
    private Integer isHis;

    @ApiModelProperty(value = "昰否通過 0失敗,1通過")
    @TableField(exist = false)
    private String isPassed;

    /**
     * 檢查失敗
     */
    public static final int CHECK_STATUS_0 = 0;
    /**
     * 檢查成功
     */
    public static final int CHECK_STATUS_1 = 1;
    /**
     * 当前记录
     */
    public static final int IS_HIS_1 = 1;
    /**
     * 历史记录
     */
    public static final int IS_HIS_2 = 2;
}
